package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author Atlakyn
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("d_tag")
public class Tag extends Model<Tag> {
    private Integer id;

    @ApiModelProperty("标签名")
    private String tagName;

    @ApiModelProperty("父标签")
    private Integer parent;

    @ApiModelProperty("可选数量 0表示无限")
    private Integer multiChoice;

    private List<Tag> tagList;
}
